<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="<?php echo base_url(); ?>css/admincp.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <div class="update-ep">
        <span style="font-weight: bold;">Danh sách tập phim</span>
        <?php
        foreach($episodeList as $episode):
            $name = $episode['name'];
            $id = $episode['episode_id'];
            $href = base_url() . 'admincp/movie/episode/update/' . $id . '/update.html';
            echo "<span><a href='$href'>$name</a></span>";
        endforeach;
        ?>
    </div>
 <div class="new-ep">
        <form method="post" enctype="multipart/form-data" name="movieupdate" action="<?php echo base_url()."admincp/movie/episode/doaddnew.html";?>">

            <table>
                <tr><span style="font-weight: bold;">Thêm 1 tập mới</span></tr>
                <tr>
                    <td colspan="3">
                        <input type="hidden" name="id" value="<?php echo $movieID; ?>" />
                        <!-- ten film -->
                        <label for="intput_movie_name" class="">&nbsp;&nbsp;&nbsp;Tên tập film</label><label class="lable-input"><input style="float: right;" class="" type="text" size="84" name="txt_name" value=""/></label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea rows="10" cols="75" name="path"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="submit" name="new-movie" id="submitForm" value="Thêm mới" style="cursor: pointer;"/>
                    </td>
                </tr>
            </table>
            </div>
        </form>

</body>
</html>
